//
//  HMComposeButton.m
//  HMWeiBoOC
//
//  Created by GD on 16/10/3.
//  Copyright © 2016年 geduo. All rights reserved.
//

#import "HMComposeButton.h"

@implementation HMComposeButton


-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

-(void)setHighlighted:(BOOL)highlighted{
    
}


-(void)setupUI{
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    
    self.imageView.contentMode = UIViewContentModeCenter;
    
    [self setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
}

-(void)layoutSubviews{//
    [super layoutSubviews];
    
//    self.imageView.frame.size.width = self.frame.size.width;
    self.imageView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.width);
    
    self.titleLabel.frame = CGRectMake(0, self.frame.size.width, self.frame.size.width,self.frame.size.height - self.frame.size.width);
    
    
}

@end
